<template>
  <form-viewer
    ref="formViewer"
    v-model="formVal"
    :buildData="formCode"
  ></form-viewer>
</template>

<script>
import formViewer from "@/components/formViewer";
export default {
  components: {
    formViewer,
  },
  data() {
    return {
      formVal: "",
      formCode: "",
    };
  },
  created() {
    this.GetFormVal();
    this.GetFormCode();
  },
  methods: {
    GetFormVal() {
      this.$axios
        .get(
          "http://localhost:9991/api/tb_project_expensebaseinfo/GetApplyList?applyId=" +
            this.$route.query.ApplyId
        )
        .then((res) => {
          console.log(res);
          if (res.status) {
            this.formVal = res.data.data.subjectCostingInfo;
            console.log(this.formVal);
          }
        });
    },
     
  },
};
</script>